package com.backend.server.license;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 服务器硬件校验信息
 */
@Data
@ApiModel(value = "服务器硬件校验信息")
public class LicenseCheckModel {

    /**
     * 可被允许的 IP 地址
     */
    @ApiModelProperty(value = "可被允许的IP地址", required = true)
    // private Boolean checkIp = true;
    private List<String> ipAddress;

    /**
     * 可被允许的 MAC 地址
     */
    @ApiModelProperty(value = "可被允许的MAC地址", required = true)
    // private Boolean checkMac = true;
    private List<String> macAddress;

    /**
     * 可被允许的 CPU 序列号
     */
    @ApiModelProperty(value = "可被允许的CPU序列号", required = true)
    // private Boolean checkCpu = true;
    private String cpuSerial;

    /**
     * 可被允许的主板序列号
     */
    @ApiModelProperty(value = "可被允许的主板序列号", required = true)
    // private Boolean checkMainBoard = true;
    private String mainBoardSerial;


    @Override
    public String toString() {
        return "LicenseCheckModel{" +
                "ipAddress=" + ipAddress +
                ", macAddress=" + macAddress +
                ", cpuSerial='" + cpuSerial + '\'' +
                ", mainBoardSerial='" + mainBoardSerial + '\'' +
                '}';
    }
}
